home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / PROGRAMMING / DESKLIBC / SOURCES.ZIP / DeskLib / !DLSources / Libraries / Dialog2 / c / OpenLeaf < prev    next >
Text File  |  1995-05-19  |  1KB  |  44 lines

  1. /*
  2.     ####             #    #     # #
  3.     #   #            #    #       #          The FreeWare C library for
  4.     #   #  ##   ###  #  # #     # ###             RISC OS machines
  5.     #   # #  # #     # #  #     # #  #   ___________________________________
  6.     #   # ####  ###  ##   #     # #  #
  7.     #   # #        # # #  #     # #  #    Please refer to the accompanying
  8.     ####   ### ####  #  # ##### # ###    documentation for conditions of use
  9.     ________________________________________________________________________
  10.  
  11.     File:    Dialog2.OpenLeaf.c
  12.     Author:  Copyright © 1994 Julian Smith
  13.     Version: 1.03 (13 Mar 1995)
  14.     Purpose: Dialogue box handling
  15. */
  16.  
  17.  
  18. #include "DeskLib:WimpSWIs.h"
  19.  
  20. #include "Defs.h"
  21.  
  22.  
  23. BOOL    Dialog2_OpenDialogMenuLeaf( event_pollblock *event, dialog2_block *dialog2)
  24. {
  25.  
  26. if ( !dialog2)    return ERROR;
  27.  
  28. Dialog2__CommonOpenMenuCode( dialog2);    /* Close any previous menuleaf etc.    */
  29.  
  30. dialog2->flags.data.type = dialog2_type_MENULEAF;
  31. Dialog2__CommonOpenCode( dialog2);
  32.  
  33. Wimp_CreateSubMenu( 
  34.     (menu_ptr) dialog2->window, 
  35.     event->data.message.data.words[1], 
  36.     event->data.message.data.words[2]
  37.     );
  38.  
  39. return NOERROR;
  40. }
  41.  
  42.  
  43.  
  44.